package com.appkubes.mall.core.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 
 * @author Rongjie
 */
@Data
@TableName("fintech_rent_order")
@KeySequence(value = "fintech_rent_order_SEQ")
@ApiModel(value = "FintechRentOrder对象")
public class FintechRentOrder implements Serializable{

       @ApiModelProperty(value = "app_key")
       private String appKey;

       @TableId(value = "rent_order_key", type = IdType.UUID)
       @ApiModelProperty(value = "租赁单KEY")
       private String rentOrderKey;

       @ApiModelProperty(value = "租聘订单号")
       private String rentOrderNo;

       @ApiModelProperty(value = "电商平台的订单KEY")
       private String orderKey;

       @ApiModelProperty(value = "用户ID")
       private String userKey;

       @ApiModelProperty(value = "租售标题")
       private String goodsTitle;

       @ApiModelProperty(value = "商品金额", example = "1")
       private Integer goodsAmount;

       @ApiModelProperty(value = "租赁金额（SKU价格）", example = "1")
       private Integer rentAmount;

       @ApiModelProperty(value = "使用的信用额度", example = "1")
       private Integer creditAmount;

       @ApiModelProperty(value = "增信金额（补充的押金）", example = "1")
       private Integer creditIncreaseAmount;

       @ApiModelProperty(value = "首付金额", example = "1")
       private Integer fistPayAmount;

       @ApiModelProperty(value = "租赁类型")
       private String rentType;

       @ApiModelProperty(value = "租金利息")
       private BigDecimal interestRate;

       @ApiModelProperty(value = "租期CODE（使用固定的CODE代表周期）")
       private String periodsCode;

       @ApiModelProperty(value = "分期数", example = "1")
       private Integer periods;

       @ApiModelProperty(value = "周期天: 1：日  2：周，3：月， 4：年", example = "1")
       private Integer periodType;

       @ApiModelProperty(value = "租聘时长", example = "1")
       private Integer periodDays;

       @ApiModelProperty(value = "起租时间")
       private Date rentStartDate;

       @ApiModelProperty(value = "买断金额：暂时", example = "1")
       private Integer buyOutAmount;

       @ApiModelProperty(value = "买断金额使用的钱", example = "1")
       private Integer buyOutRepayAmount;

       @ApiModelProperty(value = "00: 未起租， 01 已起租  02还结束")
       private String status;

       @ApiModelProperty(value = "0 未买断 1买断中 2已买断", example = "1")
       private Integer buyStatus;

       @ApiModelProperty(value = "测试验证使用:0未支付1支付成功 2支付失败", example = "1")
       private Integer payStatus;

       @ApiModelProperty(value = "创建时间")
       private Date createTime;

       @ApiModelProperty(value = "更新时间")
       private Date updateTime;

       @ApiModelProperty(value = "0未确认 1已确认", example = "1")
       private Integer isSure;

       @ApiModelProperty(value = "合同url,格式：下载url|查看url")
       private String contractUrl;

}
